package socket.body;

import java.util.Date;
import utils.DateUtil;

/**
 * 加密因子申请报文体
 * @author Administrator
 *
 */
public class ApplyKey {	  //长度130
	String typecode="02";   //交易代码类型 02代扣费   41对账 [2]
	String cardno="11111111112222222222";    //银行卡号[20]
	String agtcus="111111111122";    //校园卡帐号[12]
	String money="000000000011";     //金额（分）[12]
	String balance="000000000011";   //余额（分）[12]
	String PIN="1111111111222222";       //密码[16]
	String agtser="000001";     //发起方流水[6]
	String bankser="0000000001";   //银行流水[10]
	String date="20160801";       //交易日期[8]
	String time="121320";       //交易时间[6]
	String retcode="01";    //返回码[2]
	String servuid="00000001";    //代理方标识号[8]
	String termid="11111000";     //终端标识号[8]
	String mac="12345678";        //MAC[8]
	
	public String gettypecode() {
		return typecode;
	}
	public void settypecode(String typecode) {
		this.typecode = typecode;
	}
	
	public String getcardno() {
		return cardno;
	}
	public void setcardno(String cardno) {
		this.cardno = cardno;
	}
	public String getagtcus() {
		return agtcus;
	}
	public void setagtcus(String agtcus) {
		this.agtcus = agtcus;
	}
	
	public String getmoney() {
		return money;
	}
	public void setmoney(String money) {
		this.money = money;
	}
	
	public String getbalance() {
		return balance;
	}
	public void setbalance(String balance) {
		this.balance = balance;
	}
	
	public String getPIN() {
		return PIN;
	}
	public void setPIN(String PIN) {
		this.PIN = PIN;
	}
	
	public String getagtser() {
		return agtser;
	}
	public void setagtser(String agtser) {
		this.agtser = agtser;
	}
	
	public String getbankser() {
		return bankser;
	}
	public void setbankser(String bankser) {
		this.bankser = bankser;
	}
	
	public String getdate() {
		return date;
	}
	public void setdate(String date) {
		this.date = date;
	}
	
	public String gettime() {
		return time;
	}
	public void settime(String time) {
		this.time = time;
	}
	
	public String getretcode() {
		return retcode;
	}
	public void setretcode(String retcode) {
		this.retcode = retcode;
	}
	
	public String getservuid() {
		return servuid;
	}
	public void setservuid(String servuid) {
		this.servuid = servuid;
	}
	
	public String gettermid() {
		return termid;
	}
	public void settermid(String termid) {
		this.termid = termid;
	}
	
	public String getmac() {
		return mac;
	}
	public void setmac(String mac) {
		this.mac = mac;
	}
}

//public class ApplyKey {
//	
//	/**流水号*/
//	private String WasteSN="90"+DateUtil.formatDateTime1(new Date())+"0001";
//	/**机构编码*/
//	private String PosID="9000000";
//	/**终端机编号*/
//	private String TerminalID="900000000000  ";
//	/**加密因子申请时间*/
//	private String PosDate=DateUtil.formatDateTime1(new Date());
//	
//	public String getWasteSN() {
//		return WasteSN;
//	}
//	public void setWasteSN(String wasteSN) {
//		WasteSN = wasteSN;
//	}
//	public String getPosID() {
//		return PosID;
//	}
//	public void setPosID(String posID) {
//		PosID = posID;
//	}
//	public String getTerminalID() {
//		return TerminalID;
//	}
//	public void setTerminalID(String terminalID) {
//		TerminalID = terminalID;
//	}
//	public String getPosDate() {
//		return PosDate;
//	}
//	public void setPosDate(String posDate) {
//		PosDate = posDate;
//	}
//	
//}
